/**
 * @description 验收信息表
 * @date 2020-08-13 11:13
 * @auth LI
 */

const seq = require('../sequelize')
const { STRING, INTEGER, DATE } = require('../types')

// account account 写入到数据库时为 accounts
const AcceptanceInfo = seq.define('acceptanceInfo', {
  workerAccountId: {
    type: INTEGER,
    comment: '对应工人账号 id'
  },
  houseInfoId: {
    type: INTEGER,
    comment: '对应房源信息 id'
  },
  typeLevel: {
    type: INTEGER,
    comment: '对应账号类型'
  },
  acceptancePhoto: {
    type: STRING,
    comment: '验收图片'
  },
  acceptanceTime: {
    type: DATE,
    comment: '验收时间'
  },
  remark: {
    type: STRING,
    comment: '验收备注'
  },
  reserve: {
    type: STRING,
    comment: '保留字段'
  }
},
{
  comment: '验收信息表',
})

module.exports = AcceptanceInfo
